//
//  DetailViewController.m
//  TapHomeApp
//
//  Created by go me on 2022/2/23.
//

#import "DetailViewController.h"

@interface DetailViewController ()

@end

@implementation DetailViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.view.backgroundColor = [UIColor whiteColor];
    
    [self.view addSubview:({
        UIImageView *imgView = [UIImageView new];
        imgView.image = [UIImage imageNamed:@"Image"];
        imgView.frame = CGRectMake((self.view.frame.size.width - 300)/2.0, self.view.frame.size.height/5.0, 300, 230);
        imgView;
    })];
    
    
    [self.view addSubview:({
        UILabel *lab = [[UILabel alloc] init];
        lab.frame = CGRectMake((self.view.frame.size.width - 200)/2.0, (self.view.frame.size.height - 70)/2.0, 200, 70);
        lab.textAlignment = NSTextAlignmentCenter;
        lab.font = [UIFont systemFontOfSize:30.f];
        lab.text = @"Haha Test label";
        lab.textColor = UIColor.blueColor;
        lab;
    })];
   

    // Do any additional setup after loading the view.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
